#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QDebug>
#include <QListWidgetItem>
#include <listadddialog.h>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    void initToolButtonMenu();

private slots:
    void on_toolBox_currentChanged(int index);

    void on_tabWidget_currentChanged(int index);

    void on_actionSelAll_triggered();

    void on_actionListInit_triggered();

    void on_listWidget_itemPressed(QListWidgetItem *item);

    void on_listWidget_itemChanged(QListWidgetItem *item);

    void on_toolButtonSelNoAll_triggered(QAction *arg1);

    void on_toolButtonSelReverse_triggered(QAction *arg1);

    void on_actionListClear_triggered();

    void on_actionListAddItem_triggered();

    void addListItem(QString data);

    void insertListItem(QString data);

    void on_pushButton_clicked();

    void on_actionListInsertItem_triggered();

    void on_actionListDeleteItem_triggered();

    void on_listWidget_customContextMenuRequested(const QPoint &pos);

private:
    Ui::MainWindow *ui;
    ListAddDialog *addDialog;
};
#endif // MAINWINDOW_H
